//
//  JKResourceManager.h
//  JKFoundation
//
//  Created by JK on 07/08/2017.
//  Copyright © 2017 Shanghai DataSeed Information Technology Co.,Ltd. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

@interface JKResourceManager : NSObject

+ (NSString*)bundleName; // Override in sub-class

+ (NSString *)resourceBundlePath;

+ (NSBundle *)resourceBundle;

+ (UIImage *)bundleImageNamed:(NSString *)pureImageName;

+ (UIStoryboard*)storyboardWithName:(NSString *)storyboardName;

+ (NSString *)directoryBundlePathNamed: (NSString *)name;

+ (UINib*)bundleNibNamed: (NSString*)name;

+(NSURL*)fileUrlWithName:(NSString *)name extension:(NSString *)extension;

+ (UIImage*)imageForName: (NSString*)name
           inBundleNamed: (NSString*)bundleName;

+ (NSDictionary*)dictionaryWithPlistFileOfName: (NSString*)fileName;
+ (NSArray*)arrayWithPlistFileOfName: (NSString*)fileName;
+ (NSDictionary*)dictionaryWithJSONFileOfName: (NSString*)fileName;
+ (NSArray*)arrayWithJSONFileOfName: (NSString*)fileName;
+ (NSString*)stringWithJSONFileOfName: (NSString*)fileName;

+ (id)instantiateViewFromNibWithClass: (Class)viewClass;

+ (id)instantiateViewFromNibWithName: (NSString*)viewName;

@end
